package com.tbit.main.dao.log;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.main.pojo.AccountWeather;
import com.tbit.main.pojo.entity.WeatherGroup;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 14:04 2023/3/6
 */
public interface AccountWeatherDao extends BaseMapper<AccountWeather> {

    /**
     * 分组统计天气
     *
     * @param map
     * @return
     */
    List<WeatherGroup> groupByTime(Map<String, Object> map);

    /**
     * 按月统计
     *
     * @param map
     * @return
     */
    List<WeatherGroup> groupByMonth(Map<String, Object> map);
}
